import request from '@u/request'

// const gateway = '/project'
const gateway = '/project'
// const gateway = 'http://localhost:8080/city/local'

export function getLibraryManageList(params) {
  return request({
    url: `${gateway}/project/selectProjectManageList`,
    method: 'post',
    data: params,
  })
}

export function getLibraryManageDetail(id) {
  return request({
    url: `${gateway}/project/selectProjectManage/${id}`,
    method: 'get',
  })
}

export function addLibraryManage(params) {
  return request({
    url: `${gateway}/project/insertProjectManage`,
    method: 'post',
    data: params,
  })
}

export function updateLibraryManage(params) {
  return request({
    url: `${gateway}/project/updateProjectManage`,
    method: 'put',
    data: params,
  })
}

export function deleteLibraryManage(id) {
  return request({
    url: `${gateway}/project/deleteProjectManage/${id}`,
    method: 'delete',
  })
}
